function getDescription(idParam) {
	$.get(
		"service",
		{
			id: idParam
		},
		onAjaxSuccess
	);
}

function onAjaxSuccess(data) {
	var parsedData = $.parseJSON(data);
	var buttonHtml = "<button id=\"close_button\">Hide description</button>";
	var divHtml = parsedData.description+"<br />"+buttonHtml;
	$('#ajax_content').html(divHtml);
	$('#close_button').click(function(){
		hideDescription();
	});
	
}

function hideDescription() {
	$('#ajax_content').html('');
}